package com.yexuejc.vertx.todolist.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yexuejc.base.util.JsonUtil;

import java.io.Serializable;

/**
 * @PackageName: com.yexuejc.vertx.todolist.entity
 * @Description:
 * @author: maxf
 * @date: 2018/4/13 16:44
 */
public class User implements Serializable {

    private static final long serialVersionUID = 6108769841906709417L;
    /**
     * user_id : 1
     * user_account : 13512345678
     * user_name : zhangsan
     * user_pwd : 123456
     * crt_time : 2018-04-13T10:09:46.000
     */

    @JsonProperty("user_id")
    private String userId;
    @JsonProperty("user_account")
    private String userAccount;
    @JsonProperty("user_name")
    private String userName;
    @JsonProperty("user_pwd")
    private String userPwd;
    @JsonProperty("crt_time")
    private String crtTime;

    @Override
    public String toString() {
        return JsonUtil.obj2Json(this);
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(String crtTime) {
        this.crtTime = crtTime;
    }
}
